<?php
list($g_usec, $g_sec) = explode(" ",microtime());
define ("t_start", (float)$g_usec + (float)$g_sec);
?>
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
	initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos

//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
	$user1 = 2;
	$user2 = 2;
	$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
	$user1 = 1;
	$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
	$user2 = 1;
	$colspan = 1;
}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
	$right = 1;
}
?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/serasera_manga_0_9/css/template_css.css" rel="stylesheet" type="text/css"/>
<link rel="alternate" type="application/rss+xml" title="bizna.serasera.org" href="http://feeds.feedburner.com/serasera/bizna" />
</head>


<table align="center" border="0" cellpadding="0" cellspacing="0" width="820px">
  <tbody><tr>
    <td bgcolor="#4383D6" height="80">
	<div id="header"><div style="float: right;"><?php mosLoadModules ( 'banner', -1); ?></div>
	</div>
	</td>
  </tr>
  <tr>
    <td align="center" bgcolor="#ffffff" height="1"></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#ebebeb" height="35">
		  		<div id="buttons_outer">
		  		  <div id="buttons_inner">
						<div id="buttons">
<?php mosLoadModules ( 'user3', -1); ?>
						</div>
					</div>
		  		</div>
    </td>
  </tr>
</tbody></table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="820px">
  <tbody><tr>
	<td valign="top" width="160px">
		  		<div id="left_outer">
		  			<div id="left_inner">
		  			<?php mosLoadModules ( 'left', -2 ); ?>
		  			</div>
		  		</div>
	</td>
	<td valign="top">
		  		<div id="content_outer">
					<div id="content_inner">
					<?php mosMainBody(); ?>
			  		<br clear="all">
					<?php 
					if(empty( $_REQUEST['option']) || $_REQUEST['option'] == 'com_frontpage'){
						mosLoadComponent( "classifieds" );
					}
					 ?>
					<br clear="all">

		  			<?php mosLoadModules ( 'user5', -2 ); ?>
					<br clear="all">
		  			
					
					</div>
				</div>
	</td>
				<?php
				if ( $right > 0 ) {
				?>
	<td valign="top" width="160px">
				<div id="right_outer">
					<div id="right_inner">
					<?php mosLoadModules ( 'right', -2 ); ?>
					</div>
				</div>
	</td>
				<?php
				}
				?>
  </tr></tbody>
</table>
<div id="footer">
<?php echo "(C) 1999-" . date("Y") . ". Serasera Malagasy<br />Eugene Heriniaina - Tsiky dia ampy - Tel. +39 338 744 2412 (Italia)"; ?>
<?php
list($g_usec, $g_sec) = explode(" ",microtime());
define ("t_end", (float)$g_usec + (float)$g_sec);

$t_speed = t_end - t_start;

echo "<br />Page load : " . round($t_speed, 2) ;
?>
<?php mosLoadModules( 'debug', -1 );?>
</div>
</body></html>